/*
 * @Description: 双Y轴数据格式
 * @Autor: HuiSir<273250950@qq.com>
 * @Date: 2020-08-14 09:56:10
 * @LastEditTime: 2020-08-14 18:55:30
 */
const stateRes = { code: 0, msg: 'ok' } //状态码

//多柱+多线
export const TwoYAxis1 = {
  data: {
    xAxis: () => {
      let arr = []
      for (let i = 1; i <= 12; i++) {
        arr.push(i + '月')
      }
      return arr
    },
    series: [
      {
        name: '好评数',
        'data|12': ['@integer(10, 180)']
      },
      {
        name: '差评数',
        'data|12': ['@integer(10, 170)']
      },
      {
        name: '同比',
        'data|12': ['@integer(-30, 100)']
      },
      {
        name: '环比',
        'data|12': ['@integer(-30, 100)']
      }
    ]
  },
  ...stateRes
}

//单柱+单线
export const TwoYAxis2 = {
  data: {
    xAxis: () => {
      let arr = []
      for (let i = 1; i <= 12; i++) {
        arr.push(i + '月')
      }
      return arr
    },
    series: [
      {
        name: '评论数',
        'data|12': ['@integer(10, 180)']
      },
      {
        name: '同比',
        'data|12': ['@integer(-30, 100)']
      }
    ]
  },
  ...stateRes
}
